package com.ruoyi.gas.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.gas.mapper.GasDfMapper;
import com.ruoyi.gas.domain.GasDf;
import com.ruoyi.gas.service.IGasDfService;

/**
 * 东方报警数据Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-01-17
 */
@Service
public class GasDfServiceImpl implements IGasDfService 
{
    @Autowired
    private GasDfMapper gasDfMapper;

    /**
     * 查询东方报警数据
     * 
     * @param id 东方报警数据主键
     * @return 东方报警数据
     */
    @Override
    public GasDf selectGasDfById(Long id)
    {
        return gasDfMapper.selectGasDfById(id);
    }

    /**
     * 查询东方报警数据列表
     * 
     * @param gasDf 东方报警数据
     * @return 东方报警数据
     */
    @Override
    public List<GasDf> selectGasDfList(GasDf gasDf)
    {
        return gasDfMapper.selectGasDfList(gasDf);
    }

    /**
     * 新增东方报警数据
     * 
     * @param gasDf 东方报警数据
     * @return 结果
     */
    @Override
    public int insertGasDf(GasDf gasDf)
    {
        gasDf.setCreateTime(DateUtils.getNowDate());
        return gasDfMapper.insertGasDf(gasDf);
    }

    /**
     * 修改东方报警数据
     * 
     * @param gasDf 东方报警数据
     * @return 结果
     */
    @Override
    public int updateGasDf(GasDf gasDf)
    {
        gasDf.setUpdateTime(DateUtils.getNowDate());
        return gasDfMapper.updateGasDf(gasDf);
    }

    /**
     * 批量删除东方报警数据
     * 
     * @param ids 需要删除的东方报警数据主键
     * @return 结果
     */
    @Override
    public int deleteGasDfByIds(Long[] ids)
    {
        return gasDfMapper.deleteGasDfByIds(ids);
    }

    /**
     * 删除东方报警数据信息
     * 
     * @param id 东方报警数据主键
     * @return 结果
     */
    @Override
    public int deleteGasDfById(Long id)
    {
        return gasDfMapper.deleteGasDfById(id);
    }
}
